package com.ruoyi.points.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 积分兑换商品功能对象 points_product
 *
 * @author ruoyi
 * @date 2024-08-02
 */
public class PointsProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String img;

    /** 活动标题 */
    @Excel(name = "活动标题")
    private String name;

    /** 每个用户可以兑换的数量限制 */
    @Excel(name = "每个用户可以兑换的数量限制")
    private String canGetNum;

    /** 排序 */
    @Excel(name = "排序")
    private String weight;

    /** 兑换积分 */
    @Excel(name = "兑换积分")
    private String needPoints;

    /** 限量总数 */
    @Excel(name = "限量总数")
    private String sillSum;

    /** 限量剩余 */
    @Excel(name = "限量剩余")
    private Long sillNum;

    /** 热门推荐 */
    @Excel(name = "热门推荐")
    private Long isHot;

    /** 上架状态 */
    @Excel(name = "上架状态")
    private Long status;

    /** 关联商品表id */
    @Excel(name = "关联商品表id")
    private Long proId;

    /** 关联规格表id */
    @Excel(name = "关联规格表id")
    private Long specificationId;

    /** 关联富文本表id */
    @Excel(name = "关联富文本表id")
    private Long htmlId;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCanGetNum(String canGetNum)
    {
        this.canGetNum = canGetNum;
    }

    public String getCanGetNum()
    {
        return canGetNum;
    }
    public void setWeight(String weight)
    {
        this.weight = weight;
    }

    public String getWeight()
    {
        return weight;
    }
    public void setNeedPoints(String needPoints)
    {
        this.needPoints = needPoints;
    }

    public String getNeedPoints()
    {
        return needPoints;
    }
    public void setSillSum(String sillSum)
    {
        this.sillSum = sillSum;
    }

    public String getSillSum()
    {
        return sillSum;
    }
    public void setSillNum(Long sillNum)
    {
        this.sillNum = sillNum;
    }

    public Long getSillNum()
    {
        return sillNum;
    }
    public void setIsHot(Long isHot)
    {
        this.isHot = isHot;
    }

    public Long getIsHot()
    {
        return isHot;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setProId(Long proId)
    {
        this.proId = proId;
    }

    public Long getProId()
    {
        return proId;
    }
    public void setSpecificationId(Long specificationId)
    {
        this.specificationId = specificationId;
    }

    public Long getSpecificationId()
    {
        return specificationId;
    }
    public void setHtmlId(Long htmlId)
    {
        this.htmlId = htmlId;
    }

    public Long getHtmlId()
    {
        return htmlId;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("img", getImg())
                .append("name", getName())
                .append("canGetNum", getCanGetNum())
                .append("weight", getWeight())
                .append("needPoints", getNeedPoints())
                .append("sillSum", getSillSum())
                .append("sillNum", getSillNum())
                .append("createTime", getCreateTime())
                .append("isHot", getIsHot())
                .append("status", getStatus())
                .append("proId", getProId())
                .append("specificationId", getSpecificationId())
                .append("htmlId", getHtmlId())
                .append("unit", getUnit())
                .toString();
    }
}
